//
//  InTheSnowAppDelegate.h
//  InTheSnow
//
//  Created by di on 7/23/09.
//  Copyright INTELLECTSOFT 2009. All rights reserved.
//

@protocol XMLParser <NSObject>
@optional
- (id) initWithUrl:(NSURL*)url;
@required
- (void)parseData:(NSData*)dt;
- (NSURL*)isUrl;
@end

enum contents {
	kEvents = 0,
	kResorts,
	kGear,
	kDeals
};

@class TopBarView;
@class UIBannerImageView;
@class RotateButton;
@interface InTheSnowAppDelegate : NSObject <UIApplicationDelegate, UINavigationControllerDelegate, UITabBarControllerDelegate> {
    
    UIWindow *window;
    UINavigationController *navigationController;
	UITabBarController *tabBarController;
	IBOutlet UIToolbar *toolBar;
	IBOutlet UIImageView *firstPageImage;
	
	UILabel *dateUpdated;
	RotateButton *whole;
	int angle;
    NSTimer *animationTimer;
    NSTimeInterval animationInterval;
	
	NSMutableArray *banners;
	NSMutableArray *rssContentEvents;
	NSMutableArray *rssContentResorts;
	NSMutableArray *rssContentGear;
	NSMutableArray *rssContentDeals;
	
	NSMutableArray *rssContent;
	
	TopBarView *topBar;
	
	bool isStop;
	bool isFirst;
	bool isOffline;
}


@property(nonatomic, assign) bool isOffline;
@property(nonatomic, assign) bool isFirst;

@property (nonatomic, retain) NSMutableArray *rssContent;
@property (nonatomic, retain) NSMutableArray *rssContentResorts;
@property (nonatomic, retain) NSMutableArray *rssContentGear;
@property (nonatomic, retain) NSMutableArray *rssContentDeals;
@property (nonatomic, retain) IBOutlet UIImageView *firstPageImage;
@property (nonatomic, retain) IBOutlet UITabBarController *tabBarController;
@property (nonatomic, retain) TopBarView *topBar;
@property (nonatomic, retain) NSMutableArray *banners;
@property (nonatomic, retain) IBOutlet UIToolbar *toolBar;
@property (nonatomic, retain) NSMutableArray *rssContentEvents;
@property (nonatomic, retain) UILabel *dateUpdated;
@property (nonatomic, retain) RotateButton *whole;
@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) IBOutlet UINavigationController *navigationController;


- (void)afterFirstLoading;
- (void)toolBarChange;
- (void)startAnimation;
- (void)stopAnimation;
- (void)initToolBar;

@end

